home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / orunway.c < prev    next >
C/C++ Source or Header  |  1979-12-31  |  628b  |  43 lines

  1. /* --------------------------------- orunway.c ------------------------------ */
  2.  
  3. /* This is part of the flight simulator 'fly8'.
  4.  * Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. */
  6.  
  7. /* object runway: a standard airfield with two runways.
  8. */
  9.  
  10. #include "fly.h"
  11.  
  12.  
  13. static SHAPE shape_runway = {
  14.     0,
  15.     0,
  16.     0,
  17.     1L,        /* weight */
  18.     0        /* drag */
  19. };
  20.  
  21. LOCAL_FUNC int FAR
  22. create_runway (OBJECT *p)
  23. {
  24.     p->color = CC_BROWN;
  25.     p->time = FOREVER;
  26.     p->flags |= F_VISIBLE;
  27.     Mident (p->T);
  28.     return (0);
  29. }
  30.  
  31. BODY FAR BoRunway = {
  32.     0,
  33.     0,
  34.     "RUNWAY",
  35.     &shape_runway,
  36.     gen_read,
  37.     gen_term,
  38.     create_runway,
  39.     gen_delete,
  40.     gen_dynamics,
  41.     gen_hit
  42. };
  43.